package utils;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

public final class RepositoryUtils {

  private RepositoryUtils() {
    super();
  }

  public static final HashMap<String, Integer> HASHMAP_RANK_POSITION = new HashMap<String, Integer>() {
    {
      put(RankingConstant.RANK_NC, new Integer(RankingConstant.RANK_POSITION_NC));
      put(RankingConstant.RANK_40, new Integer(RankingConstant.RANK_POSITION_40));
      put(RankingConstant.RANK_30_5, new Integer(RankingConstant.RANK_POSITION_30_5));
      put(RankingConstant.RANK_30_4, new Integer(RankingConstant.RANK_POSITION_30_4));
      put(RankingConstant.RANK_30_3, new Integer(RankingConstant.RANK_POSITION_30_3));
      put(RankingConstant.RANK_30_2, new Integer(RankingConstant.RANK_POSITION_30_2));
      put(RankingConstant.RANK_30_1, new Integer(RankingConstant.RANK_POSITION_30_1));
      put(RankingConstant.RANK_30, new Integer(RankingConstant.RANK_POSITION_30));
      put(RankingConstant.RANK_15_5, new Integer(RankingConstant.RANK_POSITION_15_5));
      put(RankingConstant.RANK_15_4, new Integer(RankingConstant.RANK_POSITION_15_4));
      put(RankingConstant.RANK_15_3, new Integer(RankingConstant.RANK_POSITION_15_3));
      put(RankingConstant.RANK_15_2, new Integer(RankingConstant.RANK_POSITION_15_2));
      put(RankingConstant.RANK_15_1, new Integer(RankingConstant.RANK_POSITION_15_1));
      put(RankingConstant.RANK_15, new Integer(RankingConstant.RANK_POSITION_15));
      put(RankingConstant.RANK_5_6, new Integer(RankingConstant.RANK_POSITION_5_6));
      put(RankingConstant.RANK_4_6, new Integer(RankingConstant.RANK_POSITION_4_6));
      put(RankingConstant.RANK_3_6, new Integer(RankingConstant.RANK_POSITION_3_6));
      put(RankingConstant.RANK_2_6, new Integer(RankingConstant.RANK_POSITION_2_6));
      put(RankingConstant.RANK_1_6, new Integer(RankingConstant.RANK_POSITION_1_6));
      put(RankingConstant.RANK_0, new Integer(RankingConstant.RANK_POSITION_0));
      put(RankingConstant.RANK_M_4_6, new Integer(RankingConstant.RANK_POSITION_M_4_6));
      put(RankingConstant.RANK_M_2_6, new Integer(RankingConstant.RANK_POSITION_M_2_6));
      put(RankingConstant.RANK_M_15, new Integer(RankingConstant.RANK_POSITION_M_15));
      put(RankingConstant.RANK_M_30, new Integer(RankingConstant.RANK_POSITION_M_30));
      put(RankingConstant.RANK_PROMO, new Integer(RankingConstant.RANK_POSITION_PROMO));
    }
  };

  public static final HashMap<String, Integer> HASHMAP_MAXIMUM_VICTORIES = new HashMap<String, Integer>() {
    {
      put(RankingConstant.RANK_NC, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_40, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_30_5, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_30_4, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_30_3, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_30_2, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_30_1, new Integer(RankingConstant.MAXIMUM_VICTORIE_6));
      put(RankingConstant.RANK_30, new Integer(RankingConstant.MAXIMUM_VICTORIE_8));
      put(RankingConstant.RANK_15_5, new Integer(RankingConstant.MAXIMUM_VICTORIE_8));
      put(RankingConstant.RANK_15_4, new Integer(RankingConstant.MAXIMUM_VICTORIE_8));
      put(RankingConstant.RANK_15_3, new Integer(RankingConstant.MAXIMUM_VICTORIE_8));
      put(RankingConstant.RANK_15_2, new Integer(RankingConstant.MAXIMUM_VICTORIE_8));
      put(RankingConstant.RANK_15_1, new Integer(RankingConstant.MAXIMUM_VICTORIE_8));
      put(RankingConstant.RANK_15, new Integer(RankingConstant.MAXIMUM_VICTORIE_9));
      put(RankingConstant.RANK_5_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_9));
      put(RankingConstant.RANK_4_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_9));
      put(RankingConstant.RANK_3_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_10));
      put(RankingConstant.RANK_2_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_10));
      put(RankingConstant.RANK_1_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_11));
      put(RankingConstant.RANK_0, new Integer(RankingConstant.MAXIMUM_VICTORIE_12));
      put(RankingConstant.RANK_M_4_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_15));
      put(RankingConstant.RANK_M_2_6, new Integer(RankingConstant.MAXIMUM_VICTORIE_17));
      put(RankingConstant.RANK_M_15, new Integer(RankingConstant.MAXIMUM_VICTORIE_19));
      put(RankingConstant.RANK_M_30, new Integer(RankingConstant.MAXIMUM_VICTORIE_20));
      put(RankingConstant.RANK_PROMO, new Integer(RankingConstant.MAXIMUM_VICTORIE_22));
    }
  };

  public static final HashMap<String, Integer> HASHMAP_MINIMUM_BALANCE = new HashMap<String, Integer>() {
    {
      put(RankingConstant.RANK_NC, new Integer(RankingConstant.MINIMUM_BALANCE_NC));
      put(RankingConstant.RANK_40, new Integer(RankingConstant.MINIMUM_BALANCE_40));
      put(RankingConstant.RANK_30_5, new Integer(RankingConstant.MINIMUM_BALANCE_30_5));
      put(RankingConstant.RANK_30_4, new Integer(RankingConstant.MINIMUM_BALANCE_30_4));
      put(RankingConstant.RANK_30_3, new Integer(RankingConstant.MINIMUM_BALANCE_30_3));
      put(RankingConstant.RANK_30_2, new Integer(RankingConstant.MINIMUM_BALANCE_30_2));
      put(RankingConstant.RANK_30_1, new Integer(RankingConstant.MINIMUM_BALANCE_30_1));
      put(RankingConstant.RANK_30, new Integer(RankingConstant.MINIMUM_BALANCE_30));
      put(RankingConstant.RANK_15_5, new Integer(RankingConstant.MINIMUM_BALANCE_15_5));
      put(RankingConstant.RANK_15_4, new Integer(RankingConstant.MINIMUM_BALANCE_15_4));
      put(RankingConstant.RANK_15_3, new Integer(RankingConstant.MINIMUM_BALANCE_15_3));
      put(RankingConstant.RANK_15_2, new Integer(RankingConstant.MINIMUM_BALANCE_15_2));
      put(RankingConstant.RANK_15_1, new Integer(RankingConstant.MINIMUM_BALANCE_15_1));
      put(RankingConstant.RANK_15, new Integer(RankingConstant.MINIMUM_BALANCE_15));
      put(RankingConstant.RANK_5_6, new Integer(RankingConstant.MINIMUM_BALANCE_5_6));
      put(RankingConstant.RANK_4_6, new Integer(RankingConstant.MINIMUM_BALANCE_4_6));
      put(RankingConstant.RANK_3_6, new Integer(RankingConstant.MINIMUM_BALANCE_3_6));
      put(RankingConstant.RANK_2_6, new Integer(RankingConstant.MINIMUM_BALANCE_2_6));
      put(RankingConstant.RANK_1_6, new Integer(RankingConstant.MINIMUM_BALANCE_1_6));
      put(RankingConstant.RANK_0, new Integer(RankingConstant.MINIMUM_BALANCE_0));
      put(RankingConstant.RANK_M_4_6, new Integer(RankingConstant.MINIMUM_BALANCE_M_4_6));
      put(RankingConstant.RANK_M_2_6, new Integer(RankingConstant.MINIMUM_BALANCE_M_2_6));
      put(RankingConstant.RANK_M_15, new Integer(RankingConstant.MINIMUM_BALANCE_M_15));
      put(RankingConstant.RANK_M_30, new Integer(RankingConstant.MINIMUM_BALANCE_M_30));
      put(RankingConstant.RANK_PROMO, new Integer(RankingConstant.MINIMUM_BALANCE_PROMOTION));
    }
  };

  public static final List<String> LIST_FOURTH_SERIE = Arrays.asList(RankingConstant.RANK_NC, 
      RankingConstant.RANK_40, RankingConstant.RANK_30_5, RankingConstant.RANK_30_4, RankingConstant.RANK_30_3,
      RankingConstant.RANK_30_2, RankingConstant.RANK_30_1);
  public static final List<String> LIST_THIRD_SERIE = Arrays.asList(RankingConstant.RANK_30, 
      RankingConstant.RANK_15_5, RankingConstant.RANK_15_4, RankingConstant.RANK_15_3, RankingConstant.RANK_15_2,
      RankingConstant.RANK_15_1);
  public static final List<String> LIST_SECOND_SERIE = Arrays.asList(RankingConstant.RANK_15, 
      RankingConstant.RANK_5_6, RankingConstant.RANK_4_6, RankingConstant.RANK_3_6, RankingConstant.RANK_2_6,
      RankingConstant.RANK_1_6, RankingConstant.RANK_0);
}